PWD=$(shell pwd )

CROSSTOOL=/opt/buildroot/arm926t/bin/arm-linux-

CFLAGS+=-I ../libs/install/include/libxml2/
LDFLAGS+=-L ../libs/install/lib -lxml2 

CFLAGS+=-I ../booster/
LDFLAGS+=-L ../booster/ -lbooster


LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )

all: distclean
	@${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c *.c
	@${CROSSTOOL}ar -rcs  lib${LIBNAME}.a *.o

clean:
	@rm -f *.o

distclean: clean
	@rm -f *.a

